<html>
<head>
  <title>信息管理——信息列表</title>
  <meta name="layout" content="common_header"/>
  <link type="text/css" href="${resource(dir: 'css', file: 'ui.all.css', absolute: true)}" rel="stylesheet"/>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/ui', file: 'ui.core.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/ui', file: 'ui.datepicker.js', absolute: true)}"></script>
  <script>
    $(function() {
      $("#zge_dateCreated_begin").datepicker({
        dateFormat: 'yy-mm-dd',
        changeMonth: true,
        changeYear: true

      });
      $("#zle_dateCreated_end").datepicker({
        dateFormat: 'yy-mm-dd',
        changeMonth: true,
        changeYear: true

      });
    });
  </script>
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "admin", action: 'approveEstate', absolute: true)}" method="post">
    <input type="hidden" id="id" name="id"/>
    <input type="hidden" id="flag" name="flag"/>
  </form>
  <form id="queryForm" name="queryForm" action="${createLink(controller: "scaffold", action: 'list', absolute: true)}" method="post">
    <input type="hidden" name="view" value="${params?.view}"/>
    <input type="hidden" name="property" value="${params?.property}"/>
    <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
      <tr>
        <td class="left_title_1">关键字</td>
        <td class="fillin">
          <input type="text" id="zlk_keywords" name="zlk_keywords" value="${params?.zlk_keywords}">
        </td>
        <td class="left_title_1">日期</td>
        <td class="fillin">

          从
          <input name="zge_dateCreated_begin" id="zge_dateCreated_begin"
                  value="${params?.zge_dateCreated_begin}"/>
          到
          <input name="zle_dateCreated_end" id="zle_dateCreated_end"
                  value= ${params.zle_dateCreated_end}>
        </td>
      </tr>

      <tr>
        <td class="fillin" colspan="4" align="center"><input type="image" src="${resource(dir: '/images/admin_ui/', file: 'query1.gif', absolute: true)}" alt="查询"/></td>
      </tr>
    </table>
  </form>
  <br>
  <table cellpadding="0" cellspacing="0" width="95%" align="center" class="xtable">
    <thead>
    <tr>
    <g:sortableColumn  property="keywords" title="楼盘名称" params="${params}" action="${createLink(controller:"scaffold",action:'list',absolute:true)}"/>
      <th>房源类型</th>
      <th>房源户型</th>
      <th>装修情况</th>

      <th>联系人姓名</th>
         <th>审核情况</th>
       <th>审核人</th>
      <g:sortableColumn  property="dateCreated" title="发布时间" params="${params}" action="${createLink(controller:"scaffold",action:'list',absolute:true)}"/>

      <th>操作</th>

    </tr>
    </thead>
    <tbody>
    <g:each in="${list.items}">
      <tr>

        <td width="10%" align="center">

          ${it.fromEstate?.name}

        </td>
        <td width="10%" align="center">

        <g:if test="${it?.propertyType=='10'}" >普通住宅</g:if>
              <g:if test="${it?.propertyType=='20'}" >普通公寓</g:if>
              <g:if test="${it?.propertyType=='21'}" >高档公寓</g:if>
              <g:if test="${it?.propertyType=='22'}" >酒店式公寓</g:if>
              <g:if test="${it?.propertyType=='30'}" >独栋别墅</g:if>
              <g:if test="${it?.propertyType=='31'}" >联排别墅</g:if>
              <g:if test="${it?.propertyType=='32'}" >双拼别墅</g:if>
              <g:if test="${it?.propertyType=='33'}" >叠加别墅</g:if>
              <g:if test="${it?.propertyType=='40'}" >老公寓</g:if>
              <g:if test="${it?.propertyType=='41'}" >旧式里弄</g:if>
              <g:if test="${it?.propertyType=='42'}" >新式里弄</g:if>
              <g:if test="${it?.propertyType=='43'}" >老洋房</g:if>
        </td>
        <td width="10%" align="center">${it.rooms}室${it.lounges}厅${it.washrooms}卫</td>
        <td width="10%" align="center">

          <g:if test="${it?.decoration=='10'}" >尚未装修</g:if>
                <g:if test="${it?.decoration=='20'}" >简单装修</g:if>
                <g:if test="${it?.decoration=='30'}" >中档装修</g:if>
                <g:if test="${it?.decoration=='40'}" >豪华装修</g:if>
        </td>
        <td width="10%" align="center">${it.contact}</td>

        <td width="10%" align="center">

          <g:if test="${it.approveFlag=='0'||it.approveFlag==null}">

            未审核
          </g:if>

          <g:if test="${it.approveFlag=='1'}">

            审核未通过
          </g:if>
          <g:if test="${it.approveFlag=='2'}">

            审核通过
          </g:if>

        </td>

        <td width="10%" align="center">
          ${it.approveUser?.username}
        </td>
           <td width="10%" align="center">${it.dateCreated}</td>
        <td width="10%" align="center">
          <a href="${createLink(controller: 'scaffold', action: 'show', absolute: true)}?property=${params?.property}&id=${it.id}">
            <img src="${resource(dir: '/images/admin_ui/', file: 'preview.gif', absolute: true)}" alt="查看"/>
          </a>
          <a href="${createLink(controller: 'scaffold', action: 'show', absolute: true)}?property=${params?.property}&id=${it.id}&view=/supplyinfo/approve">
            审批
          </a>

        </td>

      </tr>
    </g:each>
    </tbody>
    <tfoot>
    <tr>
      <td colspan="10" align="center">
        <g:paginate total="${list.count}" params="${params}"/>
      </td>
    </tr>
    </tfoot>
  </table>
</div>
</body>
</html>
